package routers

import (
	"tmall_go/controllers/front"
	"tmall_go/middlewares"

	"github.com/gin-gonic/gin"
)

func FrontRoutersInit(r *gin.Engine) {
	// 前台
	frontRouters := r.Group("/front", middlewares.InitMiddleware)
	{
		// 首页
		frontRouters.GET("/index", front.IndexController{}.Index)

		// 商品详情
		frontRouters.GET("/detail", front.GoodsController{}.Detail)
	}
}
